package shared.pojo

import upickle.default._

/** Created by yz on 7/11/2022
  */
object User {

  object ChangePassword {

    case class Request(name: String, password: String, newPassword: String)

    object Request {

      implicit val rw = macroRW[Request]

    }

  }

  case class UserIdData(id: Int)
  object UserIdData {
    implicit val rw = macroRW[UserIdData]
  }
  case class PdfInfo(
      title: String = "",
      unit: String = "",
      address: String = "",
      reporter: String = "",
      checker: String = "",
      userId: Int = 0,
  )

  object PdfInfo {

    implicit val rw = macroRW[PdfInfo]

  }

}
